package com.qf.day07.weapon;

public class Demo1 {
    public static void main(String[] args) {
        Weapon dagger1 = new Dagger("锋刺1", 18, 15);
        Weapon dagger2 = new Dagger("锋刺2", 25, 10);
        Weapon dagger3 = new Dagger("锋刺3", 15, 30);
        Weapon dagger4 = new Dagger("锋刺4", 10, 35);
        Weapon dagger5 = new Dagger("锋刺5", 20, 18);
        Weapon longSword1 = new LongSword("风暴大剑1", 18, 15);
        Weapon longSword2 = new LongSword("风暴大剑5", 25, 10);
        Weapon longSword3 = new LongSword("风暴大剑2", 15, 30);
        Weapon longSword4 = new LongSword("风暴大剑3", 10, 35);
        Weapon longSword5 = new LongSword("风暴大剑4", 20, 18);
        Weapon[] weapons = {dagger1, dagger2, dagger3, dagger4, dagger5, longSword1, longSword2, longSword3, longSword4, longSword5};
        System.out.println("击败本关Boss");
        for (int i = 0; i < 5; i++) {
            int i1 = WeaponUtils.weaponRandom(weapons);
            System.out.println("获得了" + '\t' + weapons[i1]);
        }

    }
}

